<template lang="jade">
  header.gc-topbar
    div.logo
      router-link(to="/index")
        img(src="../assets/logo.png")
    div.nav-wrap
      span.title ElasticSearch
      div.right.nav-icon
        a(href="javascript: void(0);")
          i.icon.icon-account
          | 名字
        | |
        a(href="javascript: void(0);")
          i.icon.icon-tuichu
          | 登出
</template>

<script>
  export default {
    name:'ymyTopbar'
  }
</script>

<style lang="scss">
  @import '../style/config.scss';

  .gc-topbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: $top-bar-height;
    width: 100%;
    font-size: $base-font-normal;
    overflow: hidden;
    padding: 6px 15px;
    background-color: #fff;
    border: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    .logo {
      float: left;
      height: 50px;
      line-height: 48px;
      width: 140px;
      font-size: 28px;
      text-align: center;
      a {
        display: block;
      }
      img {
        height: 38px;
        margin-top: 4px;
      }
    }
    .nav-wrap {
      height: 100%;
      line-height: 50px;
      overflow: hidden;
      .title {
        margin-left: 10px;
        padding-left: 20px;
        border-left: 1px solid #E0E0E0;
      }
      .nav-icon {
        color: #E0E0E0;
        a {
          display: inline-block;
          padding: 0 14px;
          color: $font-color-3;
          text-decoration: none;
          &:hover {
            color: $base-color;
          }
          &:last-child {
            padding-right: 0;
          }
        }
        i {
          color: $base-color;
          margin-right: 10px;
        }
      }
    }
  }
</style>
